<template>
  <div id="app">
    <router-view v-show="isRouterAlive"/>
  </div>
</template>
<script>
export default {
  name: 'App',
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload () {
      this.isRouterAlive = false
      this.$nextTick(() => {
        this.isRouterAlive = true
      })
    },
    transitionComplete () {
      console.log(111)
    },
    // 获取高校图片
    fetchSchoolLogo () {
      this.$api.getSchoolLogo({
      }).then(res => {
        this.$store.commit('setSchoolLogo', res.data)
      })
    }
  }
}
</script>
<style lang="less">
@import '~vux/src/styles/reset.less';
@import '~vux/src/styles/1px.less';
@import './assets/less/variable.less';
@import './assets/less/font.less';
@import './assets/less/app.less';
@import './assets/less/common.less';

/*#app {*/
/*font-family: 'Avenir', Helvetica, Arial, sans-serif;*/
/*-webkit-font-smoothing: antialiased;*/
/*-moz-osx-font-smoothing: grayscale;*/
/*color: #333;*/
/*}*/
// .slide-right-enter-active {
//   position: fixed;
//   top: 0;
//   left: 0;
//   width: 100vw;
//   height: 100vh;
//   animation: slideOutLeft 0.2s linear forwards;
// }
// .slide-right-leave-active {
//   position: fixed;
//   top: 0;
//   left: 0;
//   width: 100vw;
//   height: 100vh;
//   animation: slideOutRight 0.2s linear forwards;
// }
// .slide-left-enter-active {
//   position: fixed;
//   top: 0;
//   left: 0;
//   width: 100vw;
//   height: 100vh;
//   animation: slideInLeft 0.2s linear forwards;
// }
// .slide-left-leave-active {
//   position: fixed;
//   top: 0;
//   left: 0;
//   width: 100vw;
//   height: 100vh;
//   animation: slideInRight 0.2s linear forwards;
// }
</style>
